package com.sen.ethane.gateway;

import com.netflix.zuul.ZuulFilter;
import com.netflix.zuul.http.ZuulServlet;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.cloud.netflix.zuul.filters.discovery.PatternServiceRouteMapper;
import org.springframework.context.annotation.Bean;

@SpringCloudApplication
@EnableZuulProxy
public class EthaneGatewayApplication {

	public static void main(String[] args) {
		SpringApplication.run(EthaneGatewayApplication.class, args);
	}

//	@Bean
//	public PatternServiceRouteMapper serviceRouteMapper(){
//		return new PatternServiceRouteMapper(
//			"(?<name>^.+)-(?<version>v.+$)",
//			"${version}/${name}"
//		);
//	}
}
